package com.cdfahe.gms.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cdfahe.gms.mybatis.entity.UserFh;
import com.cdfahe.gms.mybatis.entity.UserFhExample;
import com.cdfahe.gms.mybatis.mapper.UserFhMapper;
import com.cdfahe.gms.service.ISystemManageService;

/**
 * @author Karl
 *
 */
@Service
public class SystemManageServiceImpl extends CommonServiceImpl implements ISystemManageService {

	@Resource
	private UserFhMapper userFhMapper;

	@Override
	public List<UserFh> login(String username, String pwd) {
		UserFhExample user = new UserFhExample();
		UserFhExample.Criteria c = user.createCriteria();
		c.andEmailEqualTo(username);
		c.andPassEqualTo(pwd);
		return userFhMapper.selectByExample(user);
	}
}
